package dozerTest;

import java.util.List;

import com.gosophia.commons.DozerInfoSet;
import com.gosophia.commons.DozerProperty;


public class UserDto {

    @DozerProperty(myField="name",beforeField="name")
	private String name;
	
	@DozerProperty(myField="id",beforeField="id")
	private Long id;
	
	@DozerProperty(myField="pId", beforeField="pUser.id")
	private Long pId;
	
	@DozerInfoSet(
	        dozerProperty={
	                @DozerProperty(beforeClass=User.class ,myField="childUserDto",beforeField="childUser")
	                })
	private List<UserDto> childUserDto;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

    public Long getId() {
        return id;
    }

  
    private void setId(Long id) {
        this.id = id;
    }

    public Long getpId() {
        return pId;
    }

    private void setpId(Long pId) {
        this.pId = pId;
    }

    public List<UserDto> getChildUserDto() {
        return childUserDto;
    }

    private void setChildUserDto(List<UserDto> childUserDto) {
        this.childUserDto = childUserDto;
    }
}
